function createTextNode(nodeValue) {
  return {
    type: "TEXT_ELEMENT",
    nodeValue,
    children: [],
  };
}
function createElement(type, props, ...children) {
  return {
    type,
    props,
    children,
  };
}

const React = {
  createElement,
  createTextNode,
};

export default React;
